# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-feeds
pkgver=0.13.4
pkgrel=2
pkgdesc="An RSS/Atom feed reader for GNOME"
url="https://gitlab.gnome.org/World/gfeeds"
arch="noarch !mips !mips64" # webkit2gtk
license="GPL-3.0-or-later"
depends="py3-html5lib webkit2gtk py3-lxml py3-requests py3-feedparser gtk+3.0
	py3-beautifulsoup4 py3-listparser py3-tz py3-readability py3-pygments
	py3-gobject3 py3-dateutil py3-pillow"
makedepends="meson gettext glib-dev gobject-introspection-dev gtk+3.0-dev"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/gfeeds/-/archive/$pkgver/gfeeds-$pkgver.tar.gz
	dont-require-py3-gettext.patch"
builddir="$srcdir/gfeeds-$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="df0328c403fcfb171bbda130afc4c2e58f18b7bbcbbea5ffa845719f29a48a6b6fed672e3580e2fc5c50e22977d85e1050323f596358c0cf0ca59ddfd569934e  gfeeds-0.13.4.tar.gz
ac1d2f0293693a25d57a5b5517a971e9c8865885618d937f77bdd4d4ea0b2e1033b7df00f78b5e3c9c8414fb9c1e90df81d45b59f9b327a63466e2ebf317603f  dont-require-py3-gettext.patch"
